package com.wl.emp.service;

import com.wl.emp.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EmpService {
    int deleteByPrimaryKey(Integer empno);

    int insert(Emp record);

    int insertSelective(Emp record);

    Emp selectByPrimaryKey(Integer empno);

    int updateByPrimaryKeySelective(Emp record);

    int updateByPrimaryKey(Emp record);

    // 根据姓名模糊查询
    List<Emp> selectByEname(String ename);

    // 根据入职时间的区间查询
    List<Emp> selectByHiredate(@Param("start") Date start, @Param("end") Date end);

    // 查询所有
    List<Emp> selectAll();
}
